package views
{
	import inerface.IAboutUsPanel;
	
	import main.ClientConstants;
	import main.ViewSubBase;
	
	import panel.aboutUs.AboutUsPanel;
	
	public class AboutUsView extends ViewSubBase
	{
		private var _panel:IAboutUsPanel;
		
		public function AboutUsView()
		{
		}
		
		public override function show():void
		{
			render();
		}
		
		protected override function render():void
		{
			if(_panel == null){
				_panel = new AboutUsPanel();
				_panel.init(view.layout.stage,view.resourceLoader,view.lang,view.uri);
			}
			
			_panel.changeData("本app由掌尚工作室开发，\n联系方式：13287870801\n 当前版本号：" + ClientConstants.VERSION_NUM + " Beta");
			
			this.addView(_panel);
		}
		
		public override function close():void
		{
			closeView(this);	
		}
		
		public override function clear():void
		{
			_panel.clear();
		}
	}
}